export const getShopPlace = (obj) => {
  if (obj == "1") {
    return "学校";
  } else if (obj == "2") {
    return "医院/诊所";
  } else if (obj == "3") {
    return "商店/超市";
  } else if (obj == "4") {
    return "餐饮场所";
  } else if (obj == "5") {
    return "宾馆/旅馆";
  } else if (obj == "6") {
    return "娱乐/休闲场所";
  } else if (obj == "7") {
    return "网吧";
  } else if (obj == "8") {
    return "美容/美发/洗浴场所";
  } else if (obj == "9") {
    return "生产/加工企业";
  } else if (obj == "11") {
    return "消防栓";
  } else if (obj == "12") {
    return "微型消防站";
  } else if (obj == "13") {
    return "医疗服务站";
  } else if (obj == "14") {
    return "消防支队";
  } else if (obj == "10") {
    return "其他";
  } else {
    return "";
  }
}

export const getAlarmReason = (reason) => {
  if (reason == "1") {
    return "明火走火";
  } else if (reason == "2") {
    return "漏电";
  } else if (reason == "3") {
    return "自燃";
  } else if (reason == "4") {
    return "人为纵火";
  } else if (reason == "5") {
    return "易燃易爆物品燃爆";
  } else if (reason == "6") {
    return "用电负荷超载";
  } else if (reason == "7") {
    return "雷击";
  } else if (reason == "8") {
    return "生活用火不慎";
  } else if (reason == "9") {
    return "生产作业不慎";
  } else {
    return "";
  }
}
